package com.bestcem.xm.qdes.service;

import com.bestcem.xm.component.mybatis.service.IXmService;
import com.bestcem.xm.qdes.entity.ServiceSequence;

public interface ServiceSequenceService extends IXmService<ServiceSequence> {

    /**
     * 根据 code 获取下一个序号
     *
     * @param code
     * @param incrBy
     * @return
     */
    Integer getSequence(String code, long incrBy);

    /**
     * 根据 code 获取当前序号
     *
     * @param code
     * @return
     */
    Integer getCurrentSequence(String code);
}
